package cn.bs.busuo.hotel.controller;

import cn.bs.busuo.hotel.service.IOrderService;
import cn.bs.busuo.common.pojo.authentication.CurrentPrincipal;
import cn.bs.busuo.common.web.JsonResult;
import cn.hutool.core.lang.Snowflake;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

@RestController
@Slf4j
@RequestMapping("/admin/hotels/order")
@Api(tags = "5.管理员订单接口")
public class OrderController {
    @Autowired
    private IOrderService orderService;
    @Autowired(required = false)
    private Snowflake snowflake;
    /**
     * 管理员添加订单(自己)
     */
//    @PostMapping("/add/self")
//    @PreAuthorize("hasAuthority('/account/user/system')")
//    @ApiOperation("管理员添加订单(自己)")
//    @ApiOperationSupport(order = 200)
//    public JsonResult deleteFriend(@RequestBody List<Long> ids,
//                                   @ApiIgnore @AuthenticationPrincipal CurrentPrincipal principal){
//        int count = tagService.AddNewTag(principal.getId(),ids);
//        return JsonResult.ok("成功添加了"+count+"个性格标签");
//    }
    /**
     * 管理员删除订单(自己)
     */

    /**
     * 管理员查询订单(自己)
     */

    /**
     * 管理员查询订单(别人)
     */

    /**
     * 管理员修改订单(自己)
     */

    /**
     * 管理员修改订单(别人)
     */
}
